const express = require('express')
// 创建express应用
const app = express()
app.use(express.json())

const mqttServer = require('./mqttServer')
// 占用端口号
const port = 3000
const dataRouter = require('./data.js')


app.use('/data', dataRouter)


// 将应用绑定到端口号
app.listen(port, () => {
    console.log(`应用占用的端口: ${port}`)
})